package odday3;



public class Fish extends Animal implements swim {
//    - Fish类：继承Animal、实现Swim接口，重写eat()、重写swim()
public Fish(String name, int age, String color){
        super(name,age,color);
    }


    void eat() {
        System.out.println(name+"小鱼在吃虾米");
    }
    public void swim(){
        System.out.println(name+"鱼在游泳");
    }
}
